package me.gacl.utils.demo1;

import java.sql.SQLException;

import org.junit.Test;

public class AccountService {
	
	@Test
	public void testTransfer() throws SQLException {
		
		String sourceName = "A";
		String targetName = "B";
		float money = 100;
		new AccountService().transfer(sourceName, targetName, money);
	}
	
	public void transfer(String sourceName,String targetName,float money) throws SQLException {
		AccountDao dao = new AccountDao();
		dao.transfer(sourceName, targetName, money);
	}
	

}
